package designpattern.observer.mq;

public abstract class Subject<E> {
    //订阅
    abstract Result subscribe(Observer<E> orderObserver);
    //取消订阅
    abstract Result unsubscribe(Observer<E> orderObserver);
    //通知
    abstract void notify(E event);
}
